// pages/movieDetail/movieDetail.js
const Http=require('../../models/base');
Page({

  /**
   * 页面的初始数据
   */
  data: {
     movies:{ }
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad:async function (options) {
      var {subtitle,title}=options;
      console.log(title,subtitle)
      var res=await Http.getMore(subtitle);
      var {subjects}=res.data
      console.log(subjects);
      
      this.setData({
        movies:subjects
      })
      wx.setNavigationBarTitle({
        title:title
      })
  },

})